package com.yuanyu.common.util;


import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;

public class CopyUtil {
    /**
     *
     * @param A
     * @param B
     * 将 A 复制到 B
     */
    public static void copyClass(Object A, Object B) {
        try {
            BeanUtils.copyProperties(A, B);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
